import { exportFileRequest, getRequest, postRequest } from '@/api/api';

export const findPage = params => postRequest('/v1/customerLicenseInfo/findPage', params);
export const deleteById = params => postRequest('/v1/customerLicenseInfo/delete', params);
export const insert = params => postRequest('/v1/customerLicenseInfo/insert', params);
export const update = params => postRequest('/v1/customerLicenseInfo/update', params);

export const checkCustomerName = params => getRequest('/v1/customerLicenseInfo/checkCustomerName', params);

export const downloadLicense = params => exportFileRequest('/v1/license/downloadLicense', params);